package beans;

public class Tipus {
	
	private long id;
	private String tipusNev;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTipusNev() {
		return tipusNev;
	}
	public void setTipusNev(String tipusNev) {
		this.tipusNev = tipusNev;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		result = prime * result
				+ ((tipusNev == null) ? 0 : tipusNev.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Tipus other = (Tipus) obj;
		if (id != other.id)
			return false;
		if (tipusNev == null) {
			if (other.tipusNev != null)
				return false;
		} else if (!tipusNev.equals(other.tipusNev))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Tipus [id=" + id + ", tipusNev=" + tipusNev + "]";
	}
	
	
}
